package com.meng.message.service.auth;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.meng.message.domain.user.MiniUserDetails;
import com.meng.message.domain.vo.SysUserVO;
import com.meng.message.domain.vo.UserInfoVO;
import com.meng.message.domain.vo.UserSaveVO;

import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author Xu Meng
 * @since 2021-01-14
 */
public interface SysUserService extends IService<SysUserVO> {

    SysUserVO getUserVoByLoginName(String loginName);

    List<String> findUserIdByRolesId(Long userId);

    boolean saveOrUpdateUser(UserSaveVO user) throws Exception;

    boolean delUser(Long userId);

    Page<SysUserVO> findUserList(int pageNum, int pageSize, String search);

    UserInfoVO getUserInfoByUserId(MiniUserDetails user);
}
